import React, { Component } from 'react';
import {
  View,
  Text,
  StyleSheet,
  Image,
  ImageBackground,
} from 'react-native';

export default class Home extends Component {
  constructor(props) {
    super(props);
    this.state = {
      test: false
    }
  }
  err(err) {
    console.log(err)
  }
  componentDidMount() {
    console.log('home')
  }
  onLoadEnd() {
    console.log('onLoadEnd')
  }
  render() {

    return (
      <ImageBackground source={require('../imgs/01.png')} style={{width: '100%', height: '100%'}}>
        <View>
          <Text>Home</Text>
          {/* <Image style={styles.img} source={require('../imgs/01.png')} /> */}
          <Text>aaaa</Text>
        </View>
      </ImageBackground>
    )
  }
}

const styles = StyleSheet.create({
  wv: {
    width: '100%',
    height: '100%',
    backgroundColor: '#000',
  },
  img: {
    zIndex: -1,
  },
});